import request from '@/utils/request'

// 添加试题
  export function addQuestions(res) {
  return request({
    url: '/studyQuestions/create',
    method: 'post',
    data: res
  })
}
//批量删除
export function deleteQuestions(res) {
  return request({
    url: '/studyQuestions/delete/'+res.id,
    method: 'delete',
  })
}
//批量删除
export function delListQuestions(res) {
  return request({
    url: '/studyQuestions/deleteList',
    method: 'delete',
    data: res
  })
}
//获取列表
export function pageList(res) {
  return request({
    url: '/studyQuestions/getList',
    method: 'get',
    params: res
  })
}
//获取详情
export function getDetail(res) {
  return request({
    url: '/studyQuestions/getStudyQuestions/'+res.id,
    method: 'get',
  })
}
//修改
export function updateQuestions(res) {
  return request({
    url: '/studyQuestions/update',
    method: 'put',
    data: res
  })
}



export function detailDictionary() {
  return request({
    url: '/sys/dict/detail/list?pageNum=1&pageSize=100&dictType=questions_type',
    method: 'get'
  })
}
